<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <title>Tedarikçi - Gör ve Gönder</title>
        <link href="../style.css" rel="stylesheet" type="text/css"></link>
       <div style="text-align: center;height:139px;background-color: #2D99FF"></div>

    </h:head>
    <h:body>
        
            <div id="wrapper">
                <div id="logo">

                </div>
                <div id="header">
                    <!-- 		<div id="menu">
                    
                            </div>    -->
                </div>
                <div class="page">
                    <div id="page-bgtop">

                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Pages Menu">
                            <ui:include src="MenuTedarikci.xhtml"/>
                        </p:panel>

                        <!-- end #sidebar -->
<h:form prependId="false">
                        <div id="content">
                            <p:panel id="panel" header="Teklif Ver">
                                <p:dataTable var="teklif" value="#{tedarikciBean.teklifler}">  
                                    <p:column>  
                                        <f:facet name="header">  
                                            Kalem Adı  
                                        </f:facet>  
                                        <h:outputText value="#{teklif.kalem.kalemAdi}" />  
                                    </p:column>  

                                    <p:column>  
                                        <f:facet name="header">  
                                            Açıklama  
                                        </f:facet>  
                                        <h:outputText value="#{teklif.kalem.aciklama}" />  
                                    </p:column>  
                                    <p:column style="width:80px">  
                                        <f:facet name="header">  
                                            Başlangıç Fiyatı  
                                        </f:facet>  
                                        <h:outputText value="#{teklif.kalem.baslangicFiyati}" />  
                                    </p:column> 
                                    <p:column>  
                                        <f:facet name="header">  
                                            Miktarı  
                                        </f:facet>  
                                        <h:outputText value="#{teklif.kalem.miktari}" />  
                                    </p:column> 
                                    <p:column>  
                                        <f:facet name="header">  
                                            Birim  
                                        </f:facet>  
                                        <h:outputText value="#{teklif.kalem.birim}" />  
                                    </p:column> 

                                    <p:column style="width:40px">  
                                        <f:facet name="header">  
                                            Teklif  
                                        </f:facet>  
                                        <h:outputText value="#{teklif.teklif}" style="width:40px " />  
                                    </p:column>  


                                </p:dataTable> 
                                
                                <h:outputText value="Toplam Teklif Bedeliniz:" ></h:outputText>
                                <h:outputText value="#{tedarikciBean.toplamTeklifFiyati}" ></h:outputText>
                                <p:messages/>
                                <p:commandButton value="Teklifi Gönder" action="#{tedarikciBean.teklifKaydet()}" update="panel"/>
                                <p:commandButton value="Teklifi Değiştir" ajax="false" action="#{tedarikciBean.teklif_verme_ekranına_yonlendir()}"/>
                               
                            </p:panel> 

                        </div>
                        <!-- end #content -->
</h:form>
                        <div style="clear: both;">&nbsp;</div>
                    </div>

                    <!-- end #page -->

                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>İHALE YÖNETİM SİSTEMİ - 2011</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>

        
    </h:body>
</html>